var pushBtn = document.getElementById('pushBtn')

pushBtn.addEventListener('click', startPush)

var uid = $('#uid').val()
var streamName = $('#streamName').val()
var audio = $('#audio').val()
var video = $('#video').val()

function startPush() {
    $.post('/signaling/push' , {
        uid,
        streamName,
        audio,
        video
    }, function(data, textStatus){
        console.log(data, textStatus)
    },
    'json')
}